<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>{{name}}</h1>
<!--过滤器模板语法-->
<h2>--过滤器模板语法--</h2>
<p><font color="red">{{name|lower}}</font></p>
<p><font color="red">{{view_list.4|default:"zypp 666"}}</font></p>
<p><font color="red">{{name|filesizeformat}}</font></p>
<p><font color="red">{{view_url|safe}}</font></p>
<h2>{{view_list}}</h2> <!--展示全部列表信息-->
<h2>{{view_list.0}}</h2>
<h2>{{view_list.1}}</h2>
<h2>{{view_list.2}}</h2>

{% for i in view_list %}
<p>{{ forloop.counter }}</p>
<li>{{ forloop.counter0 }}</li>
{% endfor %}

{% for j in list_empty %}
{{forloop.counter0}}
{%empty%}
列表为空！！！
{% endfor %}
</body>
</html>